import request from '@/utils/request';

/**
 * 固定工资List
 * @param {*} params 
 */
export async function gdWageList(params) {
  return request('/salaryDesign/querySalaryDesignList?salaryType=1', {
    method: 'GET',
  });
}

/**
 * 销售提成List
 * @param {*} params 
 */
export async function saleWageList(params) {
  return request('/salaryDesign/querySalaryDesignList?salaryType=2', {
    method: 'GET',
  });
}

/**
 * 私教课费List
 * @param {*} params 
 */
export async function privateWageList(params) {
  return request('/salaryDesign/querySalaryDesignList?salaryType=3', {
    method: 'GET',
  });
}

/**
 * 保存薪酬设置信息
 * @param {*} params 
 */
export async function save(params) {
  return request('/salaryDesign/save', {
    method: 'POST',
    data: {
      ...params
    },
  });
}

/**
 * 删除
 * @param {*} params 
 */
export async function del(params) {
  return request(`/salaryDesign/delete?id=${params.id}`, {
    method: 'GET',
  });
}